Skip to main content

POST Outstream Player

Overview


The following table contains important information about the POST method for creating an outstream player.

POST Outstream Player
MethodPOST
URL or Endpoint/api/v1/projects/projectId/outstream-players
HeadersAuthorization
ParametersprojectId
BodyCheck request body below

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project

Request Body

{
"name": "string",
"responsive": true,
"width": 0,
"height": 0,
"releaseChannelId": 0,
"muteOnStart": true,
"viewableThresholdPercentage": 0,
"autoStartOnViewableOn": true,
"autoPauseOnViewableOn": true,
"volumeSlider": true,
"playButton": true,
"muteButton": true,
"controlBarIconsDefaultColor": "string",
"controlBarIconsHoverColor": "string",
"controlBarSliderProgressColor": "string",
"controlBarSliderRailColor": "string",
"controlBarSliderDraggerColor": "string"
}

Information about the fields that appear when you type in the request body are displayed in the table below.

Field NameTypeMandatoryDescription
namestringYesThe name of the outstream player.
responsivebooleanConditionalIf set to true, the player size will be responsive. In this case, width and height are not mandatory. If false, then width and height are required.
widthintegerConditionalThe width of the player in pixels. This field is mandatory if responsive is false.
heightintegerConditionalThe height of the player in pixels. This field is mandatory if responsive is false.
releaseChannelIdintegerYesThe ID of the release channel used for the player version.
muteOnStartbooleanYesIf true, the player will start muted.
viewableThresholdPercentageintegerYesThe percentage of player viewability required to trigger viewable events.
autoStartOnViewableOnbooleanYesIf true, the player will automatically start when it becomes viewable.
autoPauseOnViewableOnbooleanYesIf true, the player will automatically pause when it is no longer viewable.
volumeSliderbooleanYesWhether to display the volume slider control.
playButtonbooleanYesWhether to display the play button control.
muteButtonbooleanYesWhether to display the mute button control.
controlBarIconsDefaultColorstringNoColor for control bar icons in default state.
controlBarIconsHoverColorstringNoColor for control bar icons on hover.
controlBarSliderProgressColorstringNoColor of the progress part of the control bar slider.
controlBarSliderRailColorstringNoColor of the rail (background) of the control bar slider.
controlBarSliderDraggerColorstringNoColor of the dragger (handle) on the control bar slider.

Response

{
"publicId": "string",
"name": "string",
"responsive": true,
"width": 0,
"height": 0,
"releaseChannelId": 0,
"muteOnStart": true,
"viewableThresholdPercentage": 0,
"autoStartOnViewableOn": true,
"autoPauseOnViewableOn": true,
"volumeSlider": true,
"playButton": true,
"muteButton": true,
"controlBarIconsDefaultColor": "string",
"controlBarIconsHoverColor": "string",
"controlBarSliderProgressColor": "string",
"controlBarSliderRailColor": "string",
"controlBarSliderDraggerColor": "string",
"orderNumber": 0,
"releaseChannel": {
"id": 0,
"name": "string",
"originalPath": "string",
"templateOriginalPath": "string"
}
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
publicIdstringPublic ID of the outstream player.
namestringName of the outstream player.
responsivebooleanSpecifies if the player layout is responsive.
widthintegerWidth of the player in pixels (used when responsive is false).
heightintegerHeight of the player in pixels (used when responsive is false).
releaseChannelIdintegerThe ID of the release channel used for the player version.
muteOnStartbooleanIf true, the player starts muted.
viewableThresholdPercentageintegerThe percentage of player viewability required to trigger viewable events.
autoStartOnViewableOnbooleanIf true, the player will automatically start when it becomes viewable.
autoPauseOnViewableOnbooleanIf true, the player will automatically pause when it is no longer viewable.
volumeSliderbooleanWhether to display the volume slider control.
playButtonbooleanWhether to display the play button control.
muteButtonbooleanWhether to display the mute button control.
controlBarIconsDefaultColorstringColor for control bar icons in default state.
controlBarIconsHoverColorstringColor for control bar icons on hover.
controlBarSliderProgressColorstringColor of the progress part of the control bar slider.
controlBarSliderRailColorstringColor of the rail (background) of the control bar slider.
controlBarSliderDraggerColorstringColor of the dragger (handle) on the control bar slider.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed